feat(sdk): Add telemetry package to support sinks#164
feat(sdk): Add telemetry package to support sinks#164namrataghadi-galileo merged 4 commits intomainfrom
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
lan17
left a comment
There was a problem hiding this comment.
telemetry/ is now a standalone workspace package, but it is not wired into the repo's standard validation path. Please add it to the normal make lint, make typecheck, and make test/CI coverage so it can't drift outside the usual gates.
I also think it should have its own direct tests, even if they stay lightweight. Right now the package only gets incidental coverage through SDK/server tests, but the package itself owns behavior like trace-context validation and the sync/async sink contract. Those are simple enough to unit test directly in telemetry/, and package-local tests will make refactors safer than relying only on downstream coverage.
Build & CI IntegrationRoot validation now includes CI/code coverage now picks up
Tests & Validation
|
lan17
left a comment
There was a problem hiding this comment.
The telemetry coverage gap is addressed. telemetry/ now has direct tests plus Makefile and CI wiring for test/lint/typecheck, which was the missing piece I called out earlier.
## [2.2.0](ts-sdk-v2.1.0...ts-sdk-v2.2.0) (2026-04-07) ### Features * **evaluators:** add starts_with/ends_with mode to list evaluator ([#154](#154)) ([bf1f7d7](bf1f7d7)) * **sdk:** [Enterprise Integration]: Add provider agnostic traceing ([#145](#145)) ([f1ca27c](f1ca27c)) * **sdk:** Add telemetry package to support sinks ([#164](#164)) ([2186ba1](2186ba1)) * **sdk:** default merge events in SDK ([#155](#155)) ([5984a60](5984a60)) * **server,sdk, ui:** Control Templates ([#158](#158)) ([78bb538](78bb538)) * **server:** Override PG password in dockerfile ([#148](#148)) ([5d70c7d](5d70c7d)) * **server:** Remove container name for dev postgres ([92b2d13](92b2d13)) * **server:** Start local dev pg under docker compose project endign with dev ([88bee63](88bee63)) * **ui, server:** Intuitive JSON editing for Controls ([#151](#151)) ([8c23cef](8c23cef)) * **ui:** add full control JSON editing and create-from-JSON ([#147](#147)) ([e685ed0](e685ed0)) ### Bug Fixes * **docs:** add explicit shutdown to quickstart example ([#149](#149)) ([b76014f](b76014f)) * **sdk:** use sync shutdown flush fallback ([#150](#150)) ([90265ba](90265ba)) * **server:** remove unused evaluator config store ([#152](#152)) ([dea2873](dea2873)) * **server:** Omit null fields in control JSON editor ([#157](#157)) ([0aa2f3c](0aa2f3c)) * **server:** Update docker-compose.dev.yml to use different container name ([14d4c87](14d4c87)) * **ui:** improve edit control ux, no layout shift, consistent spacing ([#122](#122)) ([76d67b9](76d67b9))
|
🎉 This PR is included in version 2.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
Added a new shared top-level
telemetry/package to hold common telemetry contracts and trace-context primitives used across AgentControl.Refactored the SDK observability write path to use the shared
ControlEventSinkcontract internally while preserving the existing default OSS behavior: queue-backed batching and delivery to/api/v1/observability/events.Aligned telemetry packaging with the existing models/engine bundling pattern so telemetry is vendored into SDK and server builds rather than treated as a separate runtime-only dependency.
Scope
User-facing / API changes
Internal changes
ControlEventSink,SinkResult,BaseControlEventSink, and shared trace-context helpers.Out of scope
/observability/eventsserver ingestion behavior.Risk and Rollout
Risk level: Medium
Rollback plan:
Testing
make check(or explained why not)Checklist